package com.centit.framework.ip.businessdata.dao;

import com.centit.framework.core.dao.CodeBook;
import com.centit.framework.ip.businessdata.po.MessageInfo;
import com.centit.framework.jdbc.dao.BaseDaoImpl;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;


/**
 * MessageInfoDao  Repository.
 * create by scaffold 2018-06-04
 *
 * @author guo_jh
 * T_MESSAGE_INFO支撑平台消息数据表
 */

@Repository
public class MessageInfoDao extends BaseDaoImpl<MessageInfo, String> {

    public static final Log log = LogFactory.getLog(MessageInfoDao.class);

    @Override
    public Map<String, String> getFilterField() {
        if (filterField == null) {
            filterField = new HashMap<String, String>();

            filterField.put("recId", CodeBook.EQUAL_HQL_ID);


            filterField.put("dataTitle", CodeBook.EQUAL_HQL_ID);

            filterField.put("dataContent", CodeBook.EQUAL_HQL_ID);

            filterField.put("dataType", CodeBook.EQUAL_HQL_ID);

            filterField.put("createTime", CodeBook.EQUAL_HQL_ID);

            filterField.put("systemId", CodeBook.EQUAL_HQL_ID);

            filterField.put("isValid", CodeBook.EQUAL_HQL_ID);

            filterField.put("userCode", CodeBook.EQUAL_HQL_ID);
            filterField.put("ifread", "[:ifread| and nvl(ifread,'1')=:ifread]");

        }
        return filterField;
    }
}
